package com.kid.keep.dao.item;


import com.kid.keep.bo.CheckItemReportBO;
import com.kid.keep.po.CheckItemReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Description CheckItemReport mapper
 * @Author JOHN
 * @Create 2019-01-10
 * @Since 1.0.0
 */
public interface ICheckItemReportMapper extends BaseMapper<CheckItemReport> {

    CheckItemReportBO findByIdAndCreatorId(@Param("id")Long id, @Param("creatorId")Long creatorId);
    CheckItemReportBO findByChildIdAndStatus( @Param("childId")Long childId,  @Param("status")Integer status);
    CheckItemReportBO findByIdAndChildIdAndStatus( @Param("id")Long id, @Param("childId") Long childId, @Param("status") Integer status);
    List<CheckItemReportBO> listByDateAndCreatorIdAndStatus( @Param("startDate")Date startDate,  @Param("endDate")Date endDate,  @Param("creatorId")Long creatorId,  @Param("status")Integer status);
    List<CheckItemReportBO> listByDateAndCreatorIdAndChildIdAndStatus( @Param("startDate")Date startDate, @Param("endDate") Date endDate,@Param("childId")Long childId, @Param("creatorId")Long creatorId,@Param("status")Integer status);


}
